home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Utilities / Unix / MOTD / Source / MOTD.h < prev    next >
Text File  |  1995-06-12  |  2KB  |  101 lines

  1. /* Program: MOTD - 'Motto of the day' window
  2.  *
  3.  * By: Christopher Lane (lane@sumex-aim.stanford.edu)
  4.  *     Symbolic Systems Resources Group
  5.  *     Knowledge Systems Laboratory
  6.  *     Stanford University
  7.  *
  8.  * Contributors:
  9.  *
  10.  *    Izumi Ohzawa (izumi@violet.berkeley.edu)
  11.  *    Group in Neurobiology/School of Optometry
  12.  *    University of California, Berkeley
  13.  *
  14.  *    Steve Hayman (sahayman@cs.indiana.edu)
  15.  *    Computer Science Department Workstation Manager
  16.  *
  17.  * Date:  5 November 1992
  18.  *
  19.  * Copyright: 1989, 1990, 1991 & 1992 by The Leland Stanford Junior University.
  20.  * This program may be distributed without restriction for non-commercial use.
  21.  */
  22.  
  23. #import <c.h>
  24. #import <libc.h>
  25.  
  26. #import <appkit/appkit.h>
  27.  
  28. #define MAILDIR "/usr/spool/mail/"
  29.  
  30. typedef enum { NONE, OLD, NEW } MailLevel;
  31. typedef enum { LT = -1, EQ, GT } Comparison;
  32.  
  33. @interface MOTD:Application
  34. {
  35.     id window;
  36.     id docView;
  37.     id quitButton;
  38.     id holdButton;
  39.     id cancelButton;
  40.     id mailPanel;
  41.     id mailTitle;
  42.     id mailText;
  43.     
  44.     int wait, uid;
  45.     NXBundle *bundle;
  46.     MailLevel maillevel;
  47.     const char *file, *name;
  48.     DPSTimedEntry timedEntry;
  49.     BOOL do_motd, loginHook;
  50. }
  51.  
  52. + new;
  53.  
  54. - appDidInit:sender;
  55. - windowWillClose:sender;
  56. - free;
  57.  
  58. - setMailPanel:anObject;
  59. - setMailText:anObject;
  60. - setMailTitle:anObject;
  61.  
  62. - txt;
  63. - rtf;
  64. - rtfd;
  65.  
  66. - setWindow:anObject;
  67. - setDocView:anObject;
  68.  
  69. - quitButton;
  70. - setQuitButton:anObject;
  71.  
  72. - holdButton;
  73. - setHoldButton:anObject;
  74.  
  75. - cancelButton;
  76. - setCancelButton:anObject;
  77.  
  78. - (const char *) userName;
  79. - setUserName:(const char *) pw_name;
  80.  
  81. - (int) UID;
  82. - setUID:(int) pw_uid;
  83.  
  84. - (BOOL) do_Motd;
  85. - setDo_Motd:(BOOL) aBoolean;
  86.  
  87. - (MailLevel) mailLevel;
  88. - setMailLevel:(MailLevel) aMailLevel;
  89.  
  90. - (const char *) file;
  91. - setFile:(const char *) aString;
  92.  
  93. - (BOOL) loginHook;
  94. - setLoginHook:(BOOL) aBoolean;
  95.  
  96. - (int) wait;
  97. - setWait:(int) anInteger;
  98.  
  99. - cancelLogin:sender;
  100.  
  101. @end